package org.an.demo.module;

import android.text.TextUtils;
import com.google.gson.annotations.Expose;
import java.io.Serializable;

/**
 * Created by an on 2017/5/14.<br/>
 * 如果标签文案和请求language字段相同就不用这个了
 */

public class LanguageTagInfo implements Serializable {

  private static final long serialVersionUID = 6141571650590063527L;
  @Expose
  public String text;
  @Expose
  public String value;
  // 是否选中
  //public boolean isSelected;

  public LanguageTagInfo(String text) {
    this.text = text;
    this.value = text;
  }



  /*public LanguageTagInfo(String text, boolean isSelected) {
    this.text = text;
    this.value = text;
    this.isSelected = isSelected;
  }*/

  @Override public boolean equals(Object o) {
    if (o == null) return false;

    if (o instanceof LanguageTagInfo) {
      LanguageTagInfo info = (LanguageTagInfo) o;
      return TextUtils.equals(info.value, this.value);
    }
    return false;
  }
}
